package bird.compose;

public class COstrich implements Callable,Egglayable{
    /**
     * 叫 组合
     */
    private CallAbility callAbility = new CallAbility();
    /**
     * 下蛋 组合
     */
    private EggAbility eggAbility = new EggAbility();

    @Override
    public void call() {
        /**
         * 委托
         */
        this.callAbility.call();
    }

    @Override
    public void egg() {
        /**
         * 委托
         */
        this.eggAbility.egg();
    }

}
